package ${package}.service;

import ${package}.mapper.${table.name}Mapper;
import ${package}.model.${table.name};
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

<@m.copyright/>
@Service
public class ${table.name}Service extends BaseService<${table.idJavaType}, ${table.name}> {
    private final ${table.name}Mapper ${table.name?uncap_first}Mapper;

    @Autowired
    ${table.name}Service(${table.name}Mapper ${table.name?uncap_first}Mapper) {
        super.setMapper(${table.name?uncap_first}Mapper);
        this.${table.name?uncap_first}Mapper = ${table.name?uncap_first}Mapper;
    }
}